package org.hugh.space.business;

import java.io.Serializable;

import org.hugh.space.entity.UserEntity;

public class UserPreferences implements Serializable {
	


	private static final long serialVersionUID = 1L;
	
	private static UserPreferences userPreferences;
	
	public static UserPreferences getInstance() {
		if (userPreferences == null) {
			userPreferences = new UserPreferences();
		}
		return userPreferences;
	}
	
	private UserEntity user;
	
	public UserPreferences() {
	}
	
	public UserEntity getUser() {
		return user;
	}

	public void setUser(UserEntity user) {
		this.user = user;
	}

	public boolean isLoggedIn() {
		return user != null;
	}
	


}
